# -*- coding: utf-8 -*-
from django.conf.urls import url, include
from .views import SaleAlongTimeView, SalePriceIOView, SalePeriodView, SaleLabelView, InventoryView, PerformanceView, ExpenseAlongTimeView

urlpatterns = [
    url(r'^sale_along_time/target/(?P<target>.+)/period/(?P<period>.+)/from/(?P<start>.+)/to/(?P<end>.+)/$', SaleAlongTimeView.as_view()),
    url(r'^sale_price_io/target/(?P<target>.+)/from/(?P<start>.+)/to/(?P<end>.+)/$', SalePriceIOView.as_view()),
    url(
        r'^sale_period/store/(?P<store>.+)/period/(?P<period>.+)/target/(?P<target>.+)/from/(?P<start>.+)/to/(?P<end>.+)/$',
        SalePeriodView.as_view()),
    url(r'^sale_label/store/(?P<store>.+)/target/(?P<target>.+)/from/(?P<start>.+)/to/(?P<end>.+)/$',
        SaleLabelView.as_view()),
    url(r'^inventory/store/(?P<store>.+)/$', InventoryView.as_view()),
    url(r'^performance/store/(?P<store>.+)/from/(?P<start>.+)/to/(?P<end>.+)/$', PerformanceView.as_view()),
    url(r'^expense/store/(?P<store>.+)/from/(?P<start>.+)/to/(?P<end>.+)/$', ExpenseAlongTimeView.as_view()),
]
